﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>创建弹出窗口</title>
    <script language="javascript">
        var oPopup = window.createPopup();                         //弹出窗口对象
        var oPopupBody = oPopup.document.body;                     //弹出窗口对象的文档对象
        oPopupBody.innerHTML = "这里是一个<strong>弹出窗口</strong>";//文档内容
        oPopup.show(200, 100, 260, 50, document.body);               //指定大小的窗口，显示文本内容
    </script>
</head>
<body>

</body>
</html>